package com.example.leetcode.graph;

import com.example.leetcode.graph.common.GraphUtils;

import java.util.List;

class Solution797 {
    public List<List<Integer>> allPathsSourceTarget(int[][] graph) {
        return GraphUtils.allPathsSourceTarget(graph);
    }
}

public class leetcode797 {
    public static void main(String[] args) {
        Solution797 solution797 = new Solution797();
        int[][] graph = {{1, 2}, {3}, {3}, {}};
        System.out.println(solution797.allPathsSourceTarget(graph));

        int[][] graph1 = {{4, 3, 1}, {3, 2, 4}, {3}, {4}, {}};
        System.out.println(solution797.allPathsSourceTarget(graph1));
    }
}
